package com.nantai.jiafang.nantaijiafang.fragment;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/10/11.
 */

public class Bundle_SerInfo implements Parcelable {
    private String SystemName;
    private String SystemLoginName;
    private String SystemPassword;

    public Bundle_SerInfo(String systemName, String systemLoginName, String systemPassword) {
        SystemName = systemName;
        SystemLoginName = systemLoginName;
        SystemPassword = systemPassword;
    }

    public String getSystemName() {
        return SystemName;
    }

    public void setSystemName(String systemName) {
        SystemName = systemName;
    }

    public String getSystemLoginName() {
        return SystemLoginName;
    }

    public void setSystemLoginName(String systemLoginName) {
        SystemLoginName = systemLoginName;
    }

    public String getSystemPassword() {
        return SystemPassword;
    }

    public void setSystemPassword(String systemPassword) {
        SystemPassword = systemPassword;
    }

    @Override
    public int describeContents()
    {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel out, int flags)
    {
        out.writeString(SystemName);
        out.writeString(SystemLoginName);
        out.writeString(SystemPassword);
    }

    public static final Parcelable.Creator<Bundle_SerInfo> CREATOR = new Creator<Bundle_SerInfo>()
    {
        @Override
        public Bundle_SerInfo[] newArray(int size)
        {
            return new Bundle_SerInfo[size];
        }

        @Override
        public Bundle_SerInfo createFromParcel(Parcel in)
        {
            return new Bundle_SerInfo(in);
        }
    };

    public Bundle_SerInfo(Parcel in)
    {
        SystemName = in.readString();
        SystemLoginName = in.readString();
        SystemPassword = in.readString();
    }
}
